<h1>Upload Song</h1>

<%= error_messages_for :song %>

<% form_for (:song, @song, :url => { :action => "create" }, :html => { :multipart => true }) do |f| -%>
  <p>
    <label for="audio">MP3 file:</label>
    <%= f.file_field :uploaded_data %>
  </p>
  <p>
    <label for="title">Title:</label>
    <%= f.text_field :name %>
  </p>  
  <p>
    <label for="lyrics">Lyrics:</label>
  </p>
  <p>
    <%= f.text_area :lyrics %>
  </p>
  <p>
    <%= f.date_select :date %>
  </p>
  <p>
    <%= submit_tag 'Add song' %>
  </p>
<% end -%>